﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HotelResSystem2
{
    public class Room
    {
        private bool isAvailable = true;
        public bool Available 
        {
            get { return isAvailable; }
            set { isAvailable = value; }
        }

        private int roomNumber = 0;
        public int RoomNum 
        { 
            get { return roomNumber; }
            set { roomNumber = value; }
        }

        private string RoomTypeID = "";
        public string RoomType
        {
            get { return RoomTypeID; }
            set { RoomTypeID = value; }
        }

        private bool holdRoom;
        public bool HoldRoom
        {
            get { return holdRoom; }
            set { holdRoom = value; }
        }

        public string ShortRoomDescription
        {
            get
            {
                return roomNumber.ToString() + ", " + RoomType.ToString();
            }

        }

        private DateTime[] booked = new DateTime[20];

        public DateTime[] getBooked()
        {
            // need better way to do this, but works for now...
            // needs to be set dynamically from roominv xml file
            // per room, but this simulates it for now
            booked[0] = new DateTime(2012, 11, 13);
            booked[1] = new DateTime(2012, 11, 14);

            return booked;
        }
    }
}
